"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const RFC4122_TEMPLATE = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
function random(max) {
    return Math.floor(Math.random() * (max + 1));
}
function replacePlaceholders(placeholder) {
    let value = random(15);
    value = placeholder === 'x' ? value : (value & 0x3 | 0x8);
    return value.toString(16);
}
exports.default = () => {
    return RFC4122_TEMPLATE.replace(/[xy]/g, replacePlaceholders);
};
